import type { LoginParams, LoginResponse, Profile } from "@/types/user"
import { request } from "@/utils/reuqest"

export const loginAPI = (data:LoginParams)=>{
  return request<LoginResponse>('/park/login','POST',data)
}

export const getProfileAPI =()=>{
  return request<Profile>('/park/user/profile')
}
